package edu.upf.opencities.web.manager;

import edu.upf.opencities.datamodel.User;

public interface UserManager{

	/**
     * Register user 
     * 
     * @param userName
     * @param userLastName
     * @param mail
     * @param userPassword
     * @param company
     * @param country
     * @return
     */
    public boolean registerUser(User user);
    
    /**
     * Update user profile
     * @param userName
     * @param userLastName
     * @param mail
     * @param userPassword
     * @param company
     * @param country
     * @return
     */
    public boolean userUpdate(User user);
    
    /**
     * Get user object 
     * @param mail
     * @return
     */
    public User getUser(User user);
    
    /**
     * Delete an user
     * @param mail
     */
    public void deleteUser(User user);
    
    /**
     * Login
     * @param mail
     * @param userPassword
     * @return
     */
    public boolean loginUser(User user);


}
